package events
{
	import flash.events.Event;
	
	public class ChangeHealthComponentEvent extends Event
	{
		public static const CHANGE_HEALTH_DAMAGE:String = "changeHealthDamage";
		public static const CHANGE_HEALTH_HEAL:String = "changeHealthHeal";
		public static const CHANGE_HEALTH_SET_TEMP:String = "changeHealthSetTemp";
		public static const CHANGE_HEALTH_UN_DIE:String = "changeHealthUnDie";
		public static const CHANGE_HEALTH_FAIL_DEATH_SAVE:String = "changeHealthFailDeathSave";
		
		private var _hitPoints:String;
		public function get hitPoints():String
		{
			return this._hitPoints;
		}
		
		public function ChangeHealthComponentEvent(type:String, hitPoints:String, bubbles:Boolean=true, cancelable:Boolean=false)
		{
			this._hitPoints = hitPoints;
			super(type, bubbles, cancelable);
		}

		override public function clone():Event 
		{
			return new ChangeHealthComponentEvent(type, hitPoints, bubbles, cancelable);
		}
	}
}